import request from '@/utils/request'
//获取我的日报数据
export function getMyData(query) {
  return request({
    url: '/dailyReport/getMyData',
    method: 'get',
	  params: query
  })
}
//根据日期获取日报信息
export function getReportByDate(query) {
  return request({
    url: '/dailyReport/getReportByDate',
    method: 'get',
	  params: query
  })
}
//添加日报
export function addDailyReport(data) {
  return request({
    url: '/dailyReport/add',
    method: 'post',
	  data: data
  })
}
//修改日报
export function editDailyReport(data) {
  return request({
    url: '/dailyReport/edit',
    method: 'put',
	  data: data
  })
}

//获取日报统计列表
export function reportList(query) {
  return request({
    url: '/dailyReport/reportList',
    method: 'get',
	  params: query
  })
}
//获取成员日报列表
export function getDailyReportList(query) {
  return request({
    url: '/dailyReport/list',
    method: 'get',
	  params: query
  })
}
//导出
export function exportDaily(query) {
  return request({
    url: '/dailyReport/export',
    method: 'post',
	  data: query
  })
}
//修改状态为已读
export function updChangeView(id) {
  return request({
    url: '/dailyReport/changeView/' +id,
    method: 'post'
  })
}

//保存批注
export function saveComments(data) {
  return request({
    url: '/dailyReport/saveComments',
    method: 'post',
    data:data
  })
}
//修改批注
export function editComments(data) {
  return request({
    url: '/dailyReport/editComments',
    method: 'post',
    data:data
  })
}










